//
//  ZTodoConfirmButton.m
//  WeClubs
//
//  Created by Zed Link on 8/4/2017.
//  Copyright © 2017 Zed. All rights reserved.
//

#import "ZTodoConfirmButton.h"

@implementation ZTodoConfirmButton

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self zSetupSelf];
    }
    return self;
}

- (void)awakeFromNib
{
    [super awakeFromNib];
    
    [self zSetupSelf];
}

- (void)zSetupSelf
{
    [self setImageEdgeInsets:UIEdgeInsetsMake(0, -5, 0, 5)];
    
    [self setTitleColor:TABBAR_FG_COLOR forState:UIControlStateNormal];
    [self setTitleColor:[UIColor zColorWithHex:0x666666] forState:UIControlStateSelected];
    
    [self setImage:[[UIImage alloc] init] forState:UIControlStateNormal];
    [self setImage:[UIImage imageNamed:@"ic_confirm"] forState:UIControlStateSelected];
}

@end
